package com.xuecheng.content.service;

import com.xuecheng.content.model.dto.SaveTeachplanDto;
import com.xuecheng.content.model.dto.TeachplanDto;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author :chenjie
 * @date :Created 2023/2/4 22:25
 */
@Service
public interface TeachplanService {
    /**
     * 树形结构查询
     * @param courseId
     * @return
     */
    List<TeachplanDto> getTreeNodes(Long courseId);

    /**
     * 新增修改课程计划
     * @param dto
     */
    public void saveTeachplan(SaveTeachplanDto dto);

    /**
     * 根据id删除小节信息
     * @param id
     */
    void removeTeachplanByid( Long id);

    /**
     * 上移
     * @param id
     */
    void moveupByid( Long id);
    /**
     * 下移
     * @param id
     */
    void movedownByid(Long id);
}
